package com.yeyks.common.appcommon.param;

import com.yeyks.common.appcommon.result.CommonAuthHeader;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Administrator
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "统计订单相关信息的参数")
@Data
public class QueryStatFeeParam extends CommonAuthHeader implements Serializable {
    private static final long serialVersionUID = -3161539036301738726L;

    @ApiModelProperty("酒店ID列表. 统计时可以不选")
    private String hotelIds;

    @ApiModelProperty(value = "格式信息, 如('%Y-%c', '%Y-%c-%d')",allowableValues = "%Y-%c,%Y-%c-%d")
    private String groupByDtFmt;

    @ApiModelProperty(value = "数据查询类型 one-month(月)， one-date(天)",allowableValues = "one-month,one-date")
    private String dataType;

    @ApiModelProperty("开始时间, 时间戳(精确到毫秒)")
    @NotNull(message = "开始时间不能为空")
    private Long orderStart;

    @ApiModelProperty("结束时间, 时间戳(精确到毫秒)")
    @NotNull(message = "结束时间不能为空")
    private Long orderEnd;

}
